<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/2/23
 * Time: 14:56
 */
class Api_Test extends PhalApi_Api{
    public function getRules(){
        return array(
            'getByUser' => array(
                'id' => array('name'=>'id','require'=>true),
            ),
        );
    }
    public function getByUser(){
        $Domain_Test = new Domain_Test();
        $data = $Domain_Test -> getByUser();
        return $data;
    }
}